# 编译器
CC=gcc

# 定义编译选项
CFLAGS=-c

# 指定依赖头文件位置
INCLUDE_PATH=-I../../include/

# 指定依赖动态库位置
LIBPATH=-L../../libs/

# 指定依赖动态库
LIBS=-lcontact
LIBS+=-lmsgqueue
LIBS+=-lprintOut
LIBS+=-lseqlist
LIBS+=-lstylefile
LIBS+=-luser
LIBS+=-lsig

# 目标依赖项
OBJS=Background.o

RM=rm -f

# 默认目标
Background:$(OBJS)
	gcc $(OBJS) -o $@ $(LIBS) $(LIBPATH)

# 规则来编译源文件为对象文件
%.o:%.c
	$(CC) $(CFLAGS) $^ -o $@ $(INCLUDE_PATH)

.PHONY:clean
clean:
	$(RM) Background *.o